home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 06 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].zip / MegaDisc 06 (1988)(MegaDisc Digital Publishing)(AU)[m][WB].adf / ARTICLES / AboutARP < prev    next >
Text File  |  1988-03-28  |  6KB  |  152 lines

  1.  
  2.  
  3.          THE AMIGADOS REPLACEMENT PROJECT (ARP)
  4.                               by Tim Strachan
  5.  
  6. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  7.     To get the ARP COMMANDS, order Fish Disk 123 from us at Megadisc.
  8. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9.  
  10.     The ARP is one of the best things to have happened to the Amiga
  11. from its inception. Devised by Charlie Heath and Scott Ballantyne with
  12. help from some of the biggest names in Amiga programming, it sets out to
  13. improve AmigaDOS substantially, and it succeeds. Essentially, what they
  14. have done is to replace most DOS commands (and eventually all) with
  15. alternative, compatible, more consistent commands written in machine code,
  16. with the result being smaller, faster commands and a more flexible,
  17. consistent and powerful user interface.
  18.  
  19.     The original DOS commands had some inconsistency, some accepting
  20. multiple files, others accepting wildcards or pattern-matching, and some
  21. accepting both. ARP commands have incorporated all these capabilities in
  22. those commands which should have them. Hence special cases don't have to
  23. be remembered, and each command individually is more powerful, and the
  24. combination of all of them more powerful again. Furthermore, the on-line
  25. help facilities have been much improved - now, typing a command with a
  26. question mark will provide you with a template as before; however, you can
  27. then type another question mark and get a more detailed description of
  28. what that command does:
  29.  
  30.           1> Type ?
  31.           FROMA,,,,,,,,,,TOK,OPTK: ?
  32.           Type [upto 10 files] To outfile OPT <H(ex) N(umbers)>
  33.           FROMA,,,,,,,,,,TOK,OPTK:
  34.  
  35. Similarly, when you make a mistake inputting a command, you'll receive
  36. more informative messages, for example, typing the following under
  37.  Amigados:
  38.  
  39.           1> Echo "Hello World!
  40.           Bad Args to Echo
  41.  
  42.  
  43.       You get a not too helpful message.  The same action using
  44.       the ARP echo would cause:
  45.  
  46.  
  47.           1> Echo "Hello World!
  48.           Bad Args: Unmatched quotes
  49.  
  50.  
  51. This is rather more helpful.
  52.  
  53.     ESCAPE CODES
  54.     Another area of improvement is in ESCAPE CODES, which allow you
  55. to send special information, such as colours, form feeds, carriage returns
  56. and so forth to other devices, such as the printer or screen. The new
  57. ARP escape codes contain the original DOS escape codes as a subset.
  58. Check the ARP documentation for details of these codes. As an example,
  59.  
  60.       1> Filenote "Filename" "\X9B7mReverse Print Comment\X9B0m"
  61.  
  62. makes the Filenote to LIST in reverse print when displayed, making it
  63. stand out nicely.
  64.  
  65.     WILDCARDS (quoted from ARP Chapter 1)
  66.            ARP has an extensive set of wildcards, and most ARP
  67.       programs allow them to be used.  ARP supports ALL of the
  68.       AmigaDOS set of wildcards, as well as the more standard
  69.       Unix* style of wildcards.  ARP supports the following
  70.       wildcard characters, note that these are valid inside or
  71.       out of quotes:
  72.  
  73.  
  74.           (a|b|c)          Will match one of a, b or c.
  75.                   These can be patterns.
  76.  
  77.           ?           Matches any single character
  78.           #<pat>      Pattern repeated 0 or more times,
  79.                   in particular, #? matches anything.
  80.  
  81.           [char]      A set of characters, for example,
  82.                   [abc] or [a..c] specify the same set.
  83.  
  84.           [^char]         Match everything but this set of characters.
  85.           *           0 or more occurances of any character.
  86.  
  87.  
  88.       These can be used in combination, of course, so that
  89.       *.(c|h) or *.[ch] will match any filenames ending in
  90.       either .c or .h preceeded by any number of characters,
  91.       including no characters.
  92.  
  93.            In addition, ARP allows wildcards to be used at
  94.       multiple levels of a directory hierarchy.  For example, if
  95.       you want to type all the files in all the directories of
  96.       your INCLUDE directory, you could use
  97.           1> Type DF0:Include/*/*
  98.  
  99.  
  100.       Which will take care of things nicely.  You can be more
  101.       selective, for example only typing files that start with T
  102.       in directories that start with E:
  103.  
  104.  
  105.           1> Type DF0:Include/E*/T*
  106.  
  107.     COMMAND ENHANCEMENTS
  108.  
  109.     Here's a short description of the main enhancements contained
  110. in the ARP commands, apart from the general overall enhancements as
  111. listed above:
  112.     Assign  - now capable of up to 10 assignments in a single command
  113.     ChangeTaskPri - checks the value of the current priority
  114.               - allows you to change the priority of the
  115.             currently running task
  116.     Delete - now interactive, ie you can decide whether or not to
  117.          delete those commands that you've selected by naming
  118.          them or by using wildcards
  119.     Echo - no quotes are required, and the command provides a simple
  120.            way of sending escape codes to, say, your printer
  121.     Info - now shows Formatted capacity of the disks, rather than
  122.            full unformatted capacity, thus more useful, since the
  123.            formatted capacity of a disk is about 837K, not 880K.
  124.            Incidentally, the current version of ARP INFO has a bug
  125.            which screws up the reading for hard disks with greater
  126.            than 30Meg capacity.
  127.     Prompt - recognises two new arguments, %N and %P, which allow
  128.          you to incorporate both the task number and the full
  129.          directory path as your prompt
  130.     Protect - Wildcards are now useable
  131.     Skip - using a question mark after Skip in a batch file allows
  132.            the user to give a label to jump to
  133.     Sort - much more flexible than the original
  134.     Type - allows multiple commands and wildcards, making it a much
  135.            more powerful command (and eliminating the need for JOIN)
  136.     MakeDir - now capable of creating up to 10 directories
  137.  
  138.  
  139.  
  140.     In short, ARP is a very worthwhile and useful addition to the
  141. great array of tools now available on the Amiga, and will provide a
  142. number of secondary benefits too - the commands will take up less space
  143. on your disks and run faster; there will be better software reliability
  144. as programmers begin to write their programs with ARP in mind (there is
  145. a full set of instructions for programmers' use); and your use of the
  146. Amiga will be that much more efficient and productive. Many thanks to
  147. the creators!
  148.  
  149.  
  150.  
  151. ~~~~~~~~~~~~~~~~~~~~~~~~~~ END OF ABOUTARP ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  152.